#ifndef SYSTEMCONFIG_H
#define SYSTEMCONFIG_H

#include <QVariant>
#include <QSettings>

class SystemConfig
{
public:
    SystemConfig();
    ~SystemConfig();

public:
    static SystemConfig* getInstance(){
        static SystemConfig config;
        return &config;
    }

public:
    void initConfig();

public:
    QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
    void setValue(const QString &key, const QVariant &defaultValue = QVariant()) const;

private:
    static QSettings* g_SystemConfig;
};

#endif // SYSTEMCONFIG_H
